<template>
  <div class="post">
    <a-list item-layout="horizontal" :data-source="datalist">
      <template #renderItem="{ item }">
        <a-list-item>
          <a-list-item-meta :description="item.content">
            <template #title>
              <a href="https://www.antdv.com/">{{ item.title }}</a>
            </template>
            <template #avatar>
              <a-avatar :src="require('@/assets/avatar.png')" />
            </template>
          </a-list-item-meta>
        </a-list-item>
      </template>
    </a-list>
  </div>
</template>

<script setup lang="ts">
import { withDefaults, defineProps } from "vue";
interface Props {
  datalist: any[];
}
const props = withDefaults(defineProps<Props>(), {
  datalist: () => [],
});
</script>

<style scoped></style>
